import request from '@/utils/request'
//获取礼品类别
export function get_gift_type(data) {
    return request({
        url: '/Gift_type/index',
        method: 'post',
        data: data
    })
}
//获取礼品标签 POST name名称
export function getGiftLabelList(data,page) {
    return request({
        url: '/Ims_gift_label/gift_label_list/'+ (page ? page : 1),
        method: 'post',
        data: data
    })
}
//获取礼品标签
export function getGiftLabelPageSize() {
    return request({
        url: '/Ims_gift_label/gift_label_page',
        method: 'post',
        data: ''
    })
}
// 新增礼品标签
// name
// instructions说明
export function createGiftLabel(data) {
    return request({
        url: '/Ims_gift_label/gift_label_create',
        method: 'post',
        data: data
    })
}
// 修改礼品标签
// id
// name
// instructions说明
export function editGiftLabel(data) {
    return request({
        url: '/Ims_gift_label/gift_label_edit',
        method: 'post',
        data: data
    })
}
// 删除礼品标签
// id
export function deleteGiftLabel(data) {
    return request({
        url: '/Ims_gift_label/gift_label_del',
        method: 'post',
        data: data
    })
}